coffeeStream = require '../utils/coffeeStream.coffee'
concat       = require 'gulp-concat'
gulp         = require 'gulp'
merge        = require 'merge-stream'
paths        = require('../config.coffee').paths
sourcemaps   = require 'gulp-sourcemaps'

gulp.task 'mocks', ->
    merge(
        gulp.src paths.mocks[0]
            .pipe sourcemaps.init()
            .pipe(coffeeStream())
        gulp.src paths.mocks[1]
            .pipe sourcemaps.init()
    )
        .pipe concat('dev.js')
        .pipe sourcemaps.write('.')
        .pipe gulp.dest(paths.dest)
